﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model.NMT
{
   public class NMT_TB_Dic_RecruitStudentsInfo_ProvinceProperty : Entity
    {
        public NMT_TB_Dic_RecruitStudentsInfo_ProvinceProperty():base("NMT_TB_Dic_RecruitStudentsInfo_ProvinceProperty") { }

        #region Model
        private string _ProvinceNO;
        private string _ZYXH;
        /// <summary>
        /// 
        /// </summary>
        public string ProvinceNO
        {
            get { return _ProvinceNO; }
            set
            {
                this.OnPropertyValueChange(_.ProvinceNO, _ProvinceNO, value);
                this._ProvinceNO = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ZYXH
        {
            get { return _ZYXH; }
            set
            {
                this.OnPropertyValueChange(_.ZYXH, _ZYXH, value);
                this._ZYXH = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.ProvinceNO,
                _.ZYXH};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._ProvinceNO,
                this._ZYXH};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._ProvinceNO = DataUtils.ConvertValue<string>(reader["ProvinceNO"]);
            this._ZYXH = DataUtils.ConvertValue<string>(reader["ZYXH"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._ProvinceNO = DataUtils.ConvertValue<string>(row["ProvinceNO"]);
            this._ZYXH = DataUtils.ConvertValue<string>(row["ZYXH"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "NMT_TB_Dic_RecruitStudentsInfo_ProvinceProperty");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ProvinceNO = new Field("ProvinceNO", "NMT_TB_Dic_RecruitStudentsInfo_ProvinceProperty", "ProvinceNO");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ZYXH = new Field("ZYXH", "NMT_TB_Dic_RecruitStudentsInfo_ProvinceProperty", "ZYXH");
        }
        #endregion


    }
}

